TWO-SIDED HETEROGENEITY AND TRADE : README

- Stata file tables.do calculates data for all descriptive tables in the paper.
- Stata file analysis.do performs regressions.
- Stata file figures.do generates figures.
- Stata file mkt_shares.do calculates pi_jkg and pi_Nordic_jkt
- Stata file quantification.do exports dataset to Matlab
- Matlab file quantification.m performs the analysis of Section 5.


Data sources used: 
- Annual trade data by seller-buyer-product-year from Statistics Norway. The data can be purchased by any eligible researcher, see more details here http://www.ssb.no/english/mikrodata_en.
- Measures of firm heterogeneity from Orbis. The data can be purchased here https://www.bvdinfo.com/en-gb/our-products/data/international/orbis.
- Measures of firm heterogeneity from World Bank’s Exporter Dynamics Database. The data can be downloaded here https://data.worldbank.org/data-catalog/exporter-dynamics-database
- Absorption from UNIDOs IDSB. The data can be purchased here http://stat.unido.org
- Comtrade trade data, complied by CEPII. The data can be accessed here http://www.cepii.fr/CEPII/en/bdd_modele/presentation.asp?id=1.


